package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;
import com.itheima.pojo.User;

import java.util.LinkedHashSet;
import java.util.Map;

/**
 * 用户服务接口
 */
public interface UserService {
    public User findByUsername(String username);
    public LinkedHashSet<Menu> getUsernameAndMenus(String username);
    PageResult findPage(QueryPageBean queryPageBean) throws Exception;

    void add(User user, Integer[] roleIds);

    User findById(int id);

    void update(Map<String, Object> map) throws Exception;

    void delete(int id);
}
